
const { response } = require('express');
const express = require('express');

const app = express();

let a = new Map();

a.name = 'aaa';

app.get('/request', (req, res, next)=>{
    req.name = '张三';
    next();
});

app.get('/request', (req, res, next)=>{
    res.send(req.name);
});
app.listen(3000);
console.log('网站服务器启动成功');